# -*- coding: utf-8 -*-
from django.db import models

class Quiz(models.Model):

    question = models.CharField('問題', max_length=255)
    answer01 = models.CharField('答え01', max_length=255)
    answer02 = models.CharField('答え02', max_length=255)
    answer03 = models.CharField('答え03', max_length=255)
    answer = models.IntegerField('正解番号')

    class Meta:
        verbose_name = 'Quiz'
        verbose_name_plural = 'Quizzes'

    def __unicode__(self):
        return self.question

class Histry(models.Model):

    name = models.CharField('氏名', max_length=255)
    points = models.IntegerField('正解数')

    class Meta:
        verbose_name = 'Histry'
        verbose_name_plural = 'Histries'
